@layout("/template/container.html",{bg:"bg-white",js:["/js/module/system/isv/add.js"]}){
<form id="formContainer" lay-filter="formContainer" class="layui-form model-form">
    <div class="layui-form-item">
        <label class="layui-form-label">appId</label>
        <div class="layui-input-block">
            <input class="layui-input" readonly value="(系统自动生成)" style="background-color: #e6e6e6;"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">角色</label>
        <div class="layui-input-block" id="part0">

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input name="remark" placeholder="请输入备注" type="text" class="layui-input"/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <input type="checkbox" name="status" lay-skin="switch" lay-text="启用|禁用" value="1" lay-filter="status"
                   checked>
        </div>
    </div>
    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>

<script type="text/html" id="part0-template">
    {{#  layui.each(d.list, function(index, item){ }}
    <input type="checkbox" name="roleCode" title="{{item.description}}" value="{{item.roleCode}}" lay-skin="primary"
           lay-filter="roleCode">
    {{#  }); }}
</script>
@}
